<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/3/20
  Time: 10:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="<%=basePath%>user/addAndUpUser.do" method="post">
    <input type="hidden" name="id" value="${user.id}">
    userName<input type="text" name="userName" value="${user.userName}">
    password<input type="text" name="password" value="${user.password}">
    age     <input type="text" name="age" value="${user.age}">
    gender  <input type="text" name="gender" value="${user.gender}">
    <button type="submit">增加</button>
</form>
</body>
</html>
